#include "YFree.h"

std::string yAesEncrypt(std::string content, std::string password)
{
  std::string result = "";
  return result;
}

std::string yAesDecrypt(std::string content, std::string password)
{
  std::string result = "";
  return result;
}

gchar *yGetArgument(FlMethodCall *method_call, gchar *name)
{
  FlValue *args = fl_method_call_get_args(method_call);
  if (fl_value_get_type(args) != FL_VALUE_TYPE_MAP)
  {
    return nullptr;
  }
  FlValue *value = fl_value_lookup_string(args, name);
  if (value == nullptr)
  {
    return nullptr;
  }
  return g_strdup(fl_value_get_string(value));
}